#include <fstream>
#include <iostream>
#include <cmath>
#include <map>
using namespace std;
#define forn(i,n) for(int i=0;i<int(n);++i)

string sigma[5]={"0.1","0.01","0.001","0.0001","0.00001"};
string m[4]={"625","937","1250","1875"};

map<string,string> seeds;

int main() {
	seeds["pabloh"]="12396";
	seeds["pablor"]="46505";
	seeds["toto"]="42724";
	string name,seed;
	cin >> name;
	seed=seeds[name];
	ofstream out((string("mat_") + name + ".csv").c_str());
	out << "m \\ sigma";
	forn(is,5) out << "," << sigma[is];
	out << endl;
	forn(im,4) {
		out << m[im];
		forn(is,5) {
			string fn=name + "/m_fijo/" + m[im] + "/" + name + "_" + seed + "_"
				+ m[im] + "_" + sigma[is] + "__error_" + name + ".txt";
			ifstream in(fn.c_str());
			double d;
			in >> d;
			out << "," << log(d+1);
		}
		out << endl;
	}
	return 0;
}
